<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>弹出窗口</title>
    <script>
        const remote = require('electron').remote;

        function onClick_subWin() {
            const win = remote.getCurrentWindow();
            win.close();
        }
    </script>
</head>
<body>
<h1>弹出窗口</h1>

<button onclick="onClick_subWin()">关闭</button>
</body>
</html>
